package com.chennan.spring.demo.annotation.imports;

import com.chennan.spring.modal.Monkey;
import org.springframework.beans.factory.FactoryBean;

/**
 * @author chennan
 * @create 2021-12
 */
public class MyFactoryBean implements FactoryBean<Monkey> {

    @Override
    public Monkey getObject() throws Exception {
        return new Monkey();
    }

    @Override
    public Class<?> getObjectType() {
        return Monkey.class;
    }

    @Override
    public boolean isSingleton() {
        return true;
    }
}
